Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: Add ability to attach files to email #6

Merged
merged 7 commits into from
Mar 21, 2022
Merged

Conversation

kaymckay
Copy link
Contributor

@kaymckay kaymckay commented Mar 2, 2022

PR for go-vela/community#513

adds ability to attach files to an email. This PR corrects the use of email.Attachment and adds EmailFilename to be the file that contains the contents of the email.

@kaymckay kaymckay added the enhancement Indicates an improvement to a feature label Mar 2, 2022
@kaymckay kaymckay self-assigned this Mar 2, 2022
@codecov
Copy link

codecov bot commented Mar 2, 2022

Codecov Report

Merging #6 (a5affcb) into main (aaeaa9c) will increase coverage by 2.47%.
The diff coverage is 40.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   18.45%   20.93%   +2.47%     
==========================================
  Files           3        3              
  Lines         428      449      +21     
==========================================
+ Hits           79       94      +15     
- Misses        346      353       +7     
+ Partials        3        2       -1     
Impacted Files Coverage Δ
cmd/vela-email/main.go 0.00% <0.00%> (ø)
cmd/vela-email/plugin.go 53.71% <81.25%> (+5.24%) ⬆️

@kaymckay kaymckay requested review from a team and removed request for wass3r, GregoryDosh, jbrockopp, KellyMerrick, plyr4 and svcvela March 2, 2022 20:44
Copy link
Collaborator

@wass3r wass3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of comments below.

also,

  1. is this a breaking change?
  2. we might need attribution for the test image in use depending on where it came from, unless you created it yourself?

cmd/vela-email/plugin.go Show resolved Hide resolved
cmd/vela-email/plugin.go Show resolved Hide resolved
@kaymckay
Copy link
Contributor Author

kaymckay commented Mar 9, 2022

@wass3r this isn't a breaking change, and i'm not sure what you mean by attribution but i pulled it off the internet. I can replace it with a target image if needed

@kaymckay kaymckay requested review from wass3r and a team March 9, 2022 21:26
@kaymckay kaymckay merged commit b1a1505 into main Mar 21, 2022
@kaymckay kaymckay deleted the add-attachment branch March 21, 2022 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates an improvement to a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants